#ifndef __ADU_GAMEOVER_SCENE_H__
#define __ADU_GAMEOVER_SCENE_H__

#include "cocos2d.h"
#include "ADUConfig.h"
#include "ADUConstant.h"
#include "ADUGamePlayScene.h"
USING_NS_CC;

class GameOverLayer : public cocos2d::LayerColor {
public:
    static cocos2d::Scene* createScene();
    virtual bool init();  
    void update(float dt);
    CREATE_FUNC(GameOverLayer);
    void setTouchEnabled(bool enabled);

    virtual bool onTouchBegan(cocos2d::Touch *touch, cocos2d::Event *event);
	virtual void onTouchMoved(cocos2d::Touch *touch, cocos2d::Event *event);
	virtual void onTouchEnded(cocos2d::Touch *touch, cocos2d::Event *event);
	virtual void onTouchCancelled(cocos2d::Touch *touch, cocos2d::Event *event);

	void OnHighScoreClicked();
	void OnReplayClicked();
	void OnNextLevelClicked();
	void OnShareFacebookClicked();
    void OnAfterCaptured(bool scceed, const std::string& output);
private:
	Sprite* mHighScore;
	Sprite* mReplay;
	Sprite* mNextLevel;
	Sprite* mShareFacebook;
	EventListenerTouchOneByOne* mTouchListener;
};

#endif